<?php
use think\facade\Route;
Route::post(':version/address',':version.Address/createOrUpdateAddress')
     ->middleware(\app\middleware\api\checkPrimaryScope::class);
Route::POST(':version/order',':version.Order/placeOrder')
    ->middleware(\app\middleware\api\checkExclusiveScope::class);
Route::get(':version/order/:id',':version.Order/getDetail')
    ->pattern(['id'=>'\d+'])->middleware(\app\middleware\api\checkPrimaryScope::class);
Route::POST(':version/pay/pre_order',':version.Pay/getPreOrder')
     ->middleware(\app\middleware\api\checkExclusiveScope::class);
Route::POST(':version/pay/notify',':version.Pay/receiveNotify');
Route::post(':version/pay/re_notify',':version.Pay/redirectNotify');